<div>
    Bao gồm {{count($Data["mailList"])}} Email. <span style="cursor: pointer" onclick="$('.threads').toggle()"><tt>Xem</tt></span>
</div>
<div class="hidden threads">
<div class="threadpage">
    {{for $foo=0 to count($Data["mailList"])-1 step 50}}
    <span class="t{{$foo/50+1}} {{if $foo==0}}fwb{{/if}}" style="cursor: pointer;color: blue;" 
          onclick="threadshow({{$foo/50+1}});">{{$foo/50+1}}</span>
    {{/for}}
</div>
<div style="height: 16px">
    <div style="width: 280px;float: left;overflow: hidden;height:16px;position: relative;">
        <b>Khách hàng</b>
    </div>
    <div style="width:  100px;float: left;overflow: hidden;height:16px;position: relative;">
        <b>Lần gửi cuối</b>
    </div>
</div>
{{for $foo=0 to count($Data["mailList"])-1 step 50}}
<span class="thread t{{{{$foo/50+1}}}}" {{if $foo>0}}style="display: none"{{/if}}>
    {{for $fi=0 to  49}}
    {{if isset($Data["mailList"][$foo+$fi])}}
        <div style="height: 16px">
            <div style="width: 280px;float: left;overflow: hidden;height:16px;position: relative;">
                <span style="position: absolute;width: 120%;">{{$Data["mailList"][$foo+$fi]->CustomerName}} &lt;{{$Data["mailList"][$foo+$fi]->Email}}&gt;</span>
            </div>
            <div style="width:  100px;float: left;overflow: hidden;height:16px;position: relative;">
                {{if $Data["mailList"][$foo+$fi]->LastSend==date("Y-m-d")}}
                    Hôm nay
                {{else}}
                    {{$Data["mailList"][$foo+$fi]->LastSend}}
                {{/if}}
            </div>
        </div>
    {{/if}}

    {{/for}}
</span>
{{/for}}
</div>

